import request from '@/utils/request'

// 查询应用配置列表
export function listApplicationConfig(query) {
  return request({
    url: '/applicationConfig/applicationConfig/list',
    method: 'get',
    params: query
  })
}

// 查询应用配置详细
export function getApplicationConfig(id) {
  return request({
    url: '/applicationConfig/applicationConfig/' + id,
    method: 'get'
  })
}

// 新增应用配置
export function addApplicationConfig(data) {
  return request({
    url: '/applicationConfig/applicationConfig',
    method: 'post',
    data: data
  })
}

// 修改应用配置
export function updateApplicationConfig(data) {
  return request({
    url: '/applicationConfig/applicationConfig',
    method: 'put',
    data: data
  })
}

// 删除应用配置
export function delApplicationConfig(id) {
  return request({
    url: '/applicationConfig/applicationConfig/' + id,
    method: 'delete'
  })
}


//提交应用配置
export function updateConfig(data) {
  return request({
    url: '/applicationConfig/applicationConfig/updateAllApplicationConfig',
    method: 'post',
	data: data
  })
}